package com.xkdx.guangguang.presistence.exchangeproduct;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.guangguang.module.network.AbsAction;

public class ExchangeProductAction extends AbsAction {
	String ProductID, ProductScore, LoginToken, userID, ProductCode;

	public ExchangeProductAction(String ProductID, String ProductScore, String LoginToken, String userID,
			String ProductCode) {
		this.ProductCode=ProductCode;
		this.ProductID=ProductID;
		this.ProductScore=ProductScore;
		this.LoginToken=LoginToken;
		this.userID=userID;
	}

	@Override
	public void constructRequest() {
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("DeviceID", "2");
		map.put("ProductID", ProductID);
		map.put("ProductCode", ProductCode);
		map.put("ProductScore", ProductScore);
		map.put("UserID", userID);
		map.put("LoginToken", LoginToken);
		String json = constructJson(map);
		Parameter parameter = new Parameter("productInterface", "ExchageProduct_v2", json);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);
		requestData = constructMod(list);

	}

}
